package com.it.park.rms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.rms.client.model.UserRole;
import com.it.park.rms.client.service.UserRoleService;
import com.it.park.rms.dao.UserRoleMapper;
import com.it.park.rms.service.impl.base.BaseServiceImpl;

@Service("userRoleService")
public class UserRoleServiceImpl extends BaseServiceImpl<UserRole> implements UserRoleService{
	
	@Autowired
	private UserRoleMapper userRoleMapper;

	@Override
	public boolean insert(UserRole record) {
		return userRoleMapper.insert(record) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return userRoleMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean updateByPrimaryKeySelective(UserRole record) {
		return userRoleMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(UserRole record) {
		return userRoleMapper.updateByPrimaryKey(record)==1;
	}
	
}
